package com.tang.service.impl;

import com.tang.service.Shape;
import lombok.extern.slf4j.Slf4j;

/**
 * 圆
 *
 * @author fulin.tang
 * @version V3.0
 * @since 2021/9/15 16:58
 */
@Slf4j
public class Circle implements Shape {

    private String color;
    private int x;
    private int y;
    private int radius;

    @Override
    public void draw() {
        log.info("Circle draw color: {}, x:{}, y:{}, radius:{}", color, x, y, radius);
    }

    public Circle(String color) {
        this.color = color;
    }

    public void setX(int x) {
        this.x = x;
    }

    public void setY(int y) {
        this.y = y;
    }

    public void setRadius(int radius) {
        this.radius = radius;
    }

}
